<?php
require ("../connect/connect.php");
include '../template/template_main.tpl';
require 'estEquipaCtrl.php';

if(isset($_SESSION["profile"]) && !($_SESSION["profile"] == "2" || $_SESSION["profile"] == 1))
	header("Location: ../index.php");
	
$id=$_GET["id"];
$tabela = despEquipa($conn,$id);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../css/template.css" />
<link rel="stylesheet" type="text/css" href="../css/corpo_main.css" />
<link rel="stylesheet" type="text/css" href="../css/form.css" />
<link rel="stylesheet" type="text/css" href="../css/lista.css" />
<script type="text/javascript" src="../js/jquery-1.7.2.js" ></script>
<script type="text/javascript" src="../js/main.js" ></script>

<title>.:MateMatrix:.</title>
</head>
<body>
	<?php makeHeader(); ?>
	<?php echo $estruturaInicio;?>
	<div id="forum_opcoes">
		<h1>- Desempenho das Equipas -</h1>
	</div>
	
	<?php for ($i=0; $i<count($tabela); $i++){
			echo "<div class='teamList'><div class='teamName'><span id=\"name\">ID Jornada: </span>".$tabela[$i]["id_jornada"]."<span id=\"name\"> - Pontuação: </span>".$tabela[$i]["pontuacao"]."</div></div>
			";
		}
	?>
	
	<?php echo $estruturaFim;?>
	<?php echo $footer;?>
</body>
</html>